#!/usr/bin/env python

from mcp.server.fastmcp import FastMCP


mcp = FastMCP(name="MathServer", log_level="ERROR")


@mcp.tool(description="Addition operation")
def add(a: float, b: float) -> float:
    return a + b

@mcp.tool(description="Multiplication operation")
def multiply(a: float, b: float) -> float:
    return a * b


if __name__ == "__main__":
    # mcp.run(transport="sse")
    import asyncio
    asyncio.run(mcp.run_sse_async())
